package com.aliwo.builder;

import com.aliwo.model.BannerDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.Version;
import org.springframework.boot.logging.LogLevel;

import java.util.Date;

/**
 * @author xuyayuan
 * @data 2021年07月06日
 */
public class BannerDOBuilder {
    private Integer id;
    private String img;
    private String url;
    private Integer weight;
    private Date createTime;
    private Integer version;
    private Integer deleted;
    public BannerDOBuilder id(Integer id) {
        this.id = id;
        return this;
    }
    public BannerDOBuilder img(String img) {
        this.img = img;
        return this;
    }
    public BannerDOBuilder url(String url) {
        this.url = url;
        return this;
    }
    public BannerDOBuilder weight(Integer weight) {
        this.weight = weight;
        return this;
    }
    public BannerDOBuilder createTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }
    public BannerDOBuilder version(Integer version) {
        this.version = version;
        return this;
    }
    public BannerDOBuilder deleted(Integer deleted) {
        this.deleted = deleted;
        return this;
    }
    public BannerDO build() {
        return new BannerDO(id, img, url, weight, createTime, version, deleted);
    }

    @Override
    public String toString() {
        return "BannerDo.BannerDOBuilder(id=" + this.id + ", img=" + this.img + ", url=" + this.url +
                ", weight=" + this.weight + ", createTime=" + this.createTime +
                ", version=" + this.version + ", deleted = " + this.deleted + ")";
    }
}
